

#Configuration - Install!!
INCLUDE = ../include
LIB = ../lib

MKDIR = mkdir -p 
COPY = cp -u 

#Internal ----
EXAMPLE = ./example
SRC = ./src

DIRNAME = /Tester
VERSION = -0.9

INCLUDE_DEST = $(INCLUDE)$(DIRNAME)$(VERSION)
LIB_DEST = $(LIB)$(DIRNAME)$(VERSION)

.PHONY : lib all install clean

all:
	make -C $(EXAMPLE)

lib:
	make -C $(SRC)

install:
	make lib
	$(MKDIR) $(INCLUDE_DEST)
	$(MKDIR) $(LIB_DEST)
	$(COPY) $(SRC)/*.h $(INCLUDE_DEST)
	$(COPY) $(SRC)/*.a $(LIB_DEST)

clean:
	make -C $(EXAMPLE) clean
	make -C $(SRC) clean
